home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16216 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.mindlink.net!news
  2. From: Blake Kadatz <blake_kadatz@mindlink.bc.ca>
  3. Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++
  4. Subject: Re: Controls in non-dialog (mfc)
  5. Date: Tue, 09 Apr 1996 14:12:21 -0700
  6. Organization: BitMotion Software Inc.
  7. Message-ID: <316AD2B5.2528@mindlink.bc.ca>
  8. References: <4js2mv$sk6@news.icubed.com>
  9. NNTP-Posting-Host: line108.nwm.mindlink.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Steve Jones wrote:
  16. > How in MFC does one go about embedding a control within a
  17. > window that is not a dialog box?  For example, I can
  18. > construct and Create() a CEdit object within a CView derived
  19. > class, but nothing (apparently) happens.  I knew when I
  20. > tried it something wasn't quite right; I wasn't sure what to
  21. > use for the nID.  Is it necessary to use a resource?
  22.  
  23. The simplest answer to this is of course to derive your view from 
  24. CFormView, then (if you used AppWizard to generate your code) change 
  25. around the MYAPP_FORM dialog template to add your CEdit control.  Of 
  26. course, if you really do need the CEdit control as a child of CView then 
  27. you'll have to do a bit more hunting for this info.
  28.  
  29. --
  30. --------------------------------------------------------------------
  31. Blake Kadatz                    phone: 604-420-3931
  32. BitMotion Software Inc.         fax:   604-420-3921
  33. 304 - 7321 Halifax Street       mailto:blake_kadatz@mindlink.bc.ca
  34. Burnaby, B.C., Canada V5A 4R5
  35.